package com.example.fish.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

@Component
public class Blog {
    @Override
    public String toString() {
        return "Blog{" +
                "postid=" + postid +
                ", userid=" + userid +
                ", title='" + title + '\'' +
                ", blogtime='" + blogtime + '\'' +
                ", content='" + content + '\'' +
                ", blogimg='" + blogimg + '\'' +
                ", agree=" + agree +
                ", disagree=" + disagree +
                '}';
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.postid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private Integer postid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.userid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private Integer userid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.title
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private String title ="未命名文章";

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.blogtime
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private String blogtime ="1999-01-01";

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.content
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private String content="原文在这";

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.blogimg
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private String blogimg;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.agree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private Integer agree = 0;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column f_blog.disagree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    private Integer disagree = 0;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.postid
     *
     * @return the value of f_blog.postid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public Integer getPostid() {
        return postid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.postid
     *
     * @param postid the value for f_blog.postid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setPostid(Integer postid) {
        this.postid = postid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.userid
     *
     * @return the value of f_blog.userid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.userid
     *
     * @param userid the value for f_blog.userid
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.title
     *
     * @return the value of f_blog.title
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.title
     *
     * @param title the value for f_blog.title
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.blogtime
     *
     * @return the value of f_blog.blogtime
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public String getBlogtime() {
        return blogtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.blogtime
     *
     * @param blogtime the value for f_blog.blogtime
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setBlogtime(String blogtime) {
        this.blogtime = blogtime == null ? null : blogtime.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.content
     *
     * @return the value of f_blog.content
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public String getContent() {
        return content;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.content
     *
     * @param content the value for f_blog.content
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.blogimg
     *
     * @return the value of f_blog.blogimg
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public String getBlogimg() {
        return blogimg;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.blogimg
     *
     * @param blogimg the value for f_blog.blogimg
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setBlogimg(String blogimg) {
        this.blogimg = blogimg == null ? null : blogimg.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.agree
     *
     * @return the value of f_blog.agree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public Integer getAgree() {
        return agree;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.agree
     *
     * @param agree the value for f_blog.agree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setAgree(Integer agree) {
        this.agree = agree;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column f_blog.disagree
     *
     * @return the value of f_blog.disagree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public Integer getDisagree() {
        return disagree;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column f_blog.disagree
     *
     * @param disagree the value for f_blog.disagree
     *
     * @mbggenerated Sun Feb 25 19:57:25 CST 2024
     */
    public void setDisagree(Integer disagree) {
        this.disagree = disagree;
    }
}